from panda3d.physics import *

class Terrain(object):
    def __init__(self):
        self.model = loader.loadModel("../models/terrain.egg")
        self.model.setTexture(loader.loadTexture("../textures/terrain_texture.jpg"))
        self.model.setScale(10)
        self.model.reparentTo(render)
        self.collisionPlane = self.model.find("**/collisionPlane")
        #self.collisionPlane.show()
        #min, max = self.model.getTightBounds() 
        #size = max-min
        #print size
